# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
    include AuthenticatedSystem
    before_filter :login_from_cookie, :set_local_title

    # Pick a unique cookie name to distinguish our session data from others'
    session :session_key => '_openidauth_session_id'

    protected
    
    def make_safe_uri(name)
        name.gsub(' ', '_')
    end
    
    def set_local_title
        @local_title = '&nbsp;'
    end
end
